
def bubble_sorting(a):
    len_a = len(a)
    if len_a <= 1:
        return
    for i in range(n-1, -1, -1):
        for j in range(0, i):
            if a[j] > a[j+1]:
                a[j], a[j+1] = a[j+1], a[j]




#
n = int(input())
a = list(map(int, input().split()))
bubble_sorting(a)

print(*a)



